package com.ruoyi.project.system.material.img.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 素材中心图片对象 material_img
 * 
 * @author LCL
 * @date 2021-01-21
 */
public class MaterialImg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 图片访问路径 */
    @Excel(name = "图片访问路径")
    private String url;

    /** 图片真实路径 */
    @Excel(name = "图片真实路径")
    private String urlRealPath;

    /** 素材主键ID */
    @Excel(name = "素材主键ID")
    private String materialId;

    /** 类型:0 主图 1 详情 */
    @Excel(name = "类型:0 主图 1 详情")
    private Integer type;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setUrlRealPath(String urlRealPath) 
    {
        this.urlRealPath = urlRealPath;
    }

    public String getUrlRealPath() 
    {
        return urlRealPath;
    }
    public void setMaterialId(String materialId) 
    {
        this.materialId = materialId;
    }

    public String getMaterialId() 
    {
        return materialId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("url", getUrl())
            .append("urlRealPath", getUrlRealPath())
            .append("materialId", getMaterialId())
            .append("type", getType())
            .append("sort", getSort())
            .toString();
    }
}
